package com.probox.common.core.enums;

public enum CustomerOperationTimeTypeEnum {
    //人群运营
    longTermTime("0","长期计划时间"),
    timingTermTime("1","定时计划时间"),
    //场景运营
    byMonth("2","每月时间"),
    weekly ("3","每周时间"),
    everyday ("4","每日时间");

    private CustomerOperationTimeTypeEnum(String k, String v) {
        this.setKey(k);
        this.setValue(v);
    }

    public static String getNameByKey(String key) {
        String rst = "";
        for(CustomerFundBizTypeEnum oe: CustomerFundBizTypeEnum.values()) {
            if (oe.getKey().equals(key)) {
                rst = oe.getValue();
            }
        }
        return rst;
    }

    private String key;
    private String value;

    public String getKey() {
        return key;
    }
    public void setKey(String key) {
        this.key = key;
    }
    public String getValue() {
        return value;
    }
    public void setValue(String value) {
        this.value = value;
    }

}
